<template>
	<rui-pages>
		<view class="header">
			<rui-user-info ref="userinfo"></rui-user-info>
		</view>
		<rui-search></rui-search>
	</rui-pages>
</template>

<script setup>
	import {
		onLoad,
		onShow,
		// onShareAppMessage,
		// onShareTimeline,
		
	} from "@dcloudio/uni-app"
	import {
		ref,nextTick
	} from "vue";
	// import share from "@/util/share.js"
	
	let userinfo = ref(null)
	
	onShow(() => {
		nextTick(() => {
			userinfo.value.initData()
		})
	})

	// onShareAppMessage(() => {
	// 	return share.getData()
	// })
	// onShareTimeline(() => {
	// 	return share.getData()
	// })
</script>

<style lang="scss" scoped>
	.header {
		background: #3d7eff;
		padding-left: 20rpx;
		padding-right: 20rpx;
		height: 350rpx;
	}
</style>